#include "test.h"
#include <QTest>

QTEST_MAIN(Test)

Test::Test(QObject *parent) :
    QObject(parent)
{
}

void Test::toUpper()
{
    QString str = "Hello";
    QVERIFY(str.toUpper() == "HELLO");
}

void Test::toUpper1()
{
    QCOMPARE(QString("hello").toUpper(), QString("HELLO"));
    QCOMPARE(QString("Hello").toUpper(), QString("HELLO"));
    QCOMPARE(QString("HellO").toUpper(), QString("HELLO"));
    QCOMPARE(QString("HELLO").toUpper(), QString("HELLO"));
}
